﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main.Master" AutoEventWireup="true" CodeBehind="~/GUI/Registry.aspx.cs" Inherits="WebBanHang.GUI.Registry" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style21
        {
            text-align: center;
        }
        .style23
        {
            width: 240px;
        }
        .style24
        {
            width: 240px;
            text-align: right;
        }
        .style25
        {
            width: 240px;
            text-align: right;
            height: 23px;
        }
        .style26
        {
            height: 23px;
        }
        .style33
        {
            width: 240px;
            text-align: right;
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style19">
        <tr>
            <td class="style21" colspan="2">
                THÔNG TIN ĐĂNG KÝ</td>
        </tr>
        <tr>
            <td class="style25">
                Email</td>
            <td class="style26">
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="abc@abc.abc" SetFocusOnError="True" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style24">
                Tên đăng nhập</td>
            <td>
                <asp:TextBox ID="txtTenDangNhap" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTenDangNhap" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style33">
                Mật khẩu</td>
            <td class="style16">
                <asp:TextBox ID="txtMatKhau" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtMatKhau" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style24">
                Xác nhận lại mật khẩu</td>
            <td>
                <asp:TextBox ID="txtNhapLaiMatKhau" runat="server" TextMode="Password"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtMatKhau" ControlToValidate="txtNhapLaiMatKhau" 
                    ErrorMessage="Password không đúng" SetFocusOnError="True">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style24">
                Họ tên</td>
            <td>
                <asp:TextBox ID="txtHoTen" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtHoTen" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style24">
                Giới tính</td>
            <td>
               <div style="float:left; width: 81px;">
                   <asp:RadioButton ID="raNam" 
                       runat="server" Text="Nam" GroupName="GioiTinh" /> </div>
               <div>
                   <asp:RadioButton ID="raNu" runat="server" Text="Nữ" 
                       GroupName="GioiTinh" />  </div>
            </td>
        </tr>
        <tr>
            <td class="style24">
                Điện thoại</td>
            <td>
                <asp:TextBox ID="txtDienThoai" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style21" colspan="2">
                THÔNG TIN GIAO HÀNG</td>
        </tr>
        <tr>
            <td class="style24" valign="top">
                Địa chỉ</td>
            <td>
                <asp:TextBox ID="txtDiaChi" runat="server" Width="238px" Height="55px" 
                    TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style23">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnDangKy" runat="server" Text="Đăng ký" Width="132px" 
                    onclick="btnDangKy_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
